package pessoas
{
	import org.flixel.FlxPoint;
	import org.flixel.FlxState;
	import org.flixel.FlxSprite;
	
	/**
	 * ...
	 * @author Lucas Mello
	 */
	public class Pobre extends PessoaSugavel
	{
		[Embed(source = '../../assets/pobreHead1.png')] public static var head1_img:Class;
		[Embed(source = '../../assets/pobreHead2.png')] public static var head2_img:Class;
		[Embed(source = '../../assets/pobreHead3.png')] public static var head3_img:Class;
		[Embed(source = '../../assets/pobreBody.png')] public static var body1_img:Class;
		[Embed(source = '../../assets/pobreBody2.png')] public static var body2_img:Class;
		[Embed(source = '../../assets/pobreBody3.png')] public static var body3_img:Class;
		[Embed(source = '../../assets/pobreLegs.png')] public static var legs1_img:Class;
		[Embed(source = '../../assets/pobreLegs2.png')] public static var legs2_img:Class;
		[Embed(source = '../../assets/pobreLegs3.png')] public static var legs3_img:Class;
		[Embed(source = '../../assets/mediaLegs.png')] public static var legs4_img:Class;
		[Embed(source = '../../assets/pobreArms.png')] public static var arms1_img:Class;
		[Embed(source = '../../assets/pobreArms2.png')] public static var arms2_img:Class;
		
		public function Pobre()
		{
			super();
		}
		
		public function respawn(state:MainState, pos:FlxPoint, dir:int):void
		{
			money = 100 + Math.random()*200;
		
			var rand:int = Math.random() * 15;
			
			switch(rand)
			{
				case 1: 
					init(state, pos, dir, head1_img, body1_img, legs1_img, arms1_img); break;
				case 2:
					init(state, pos, dir, head3_img, body1_img, legs3_img, arms1_img); break;
				case 3: 
					init(state, pos, dir, head1_img, body1_img, legs4_img, arms1_img); break;
				case 4: 
					init(state, pos, dir, head3_img, body1_img, legs4_img, arms1_img); break;
				case 5: 
					init(state, pos, dir, head3_img, body1_img, legs1_img, arms1_img); break;
				case 6: 
					init(state, pos, dir, head1_img, body3_img, legs1_img, arms1_img); break;
				case 7:
					init(state, pos, dir, head3_img, body3_img, legs3_img, arms1_img); break;
				case 8: 
					init(state, pos, dir, head1_img, body3_img, legs4_img, arms1_img); break;
				case 9: 
					init(state, pos, dir, head3_img, body3_img, legs4_img, arms1_img); break;
				case 10: 
					init(state, pos, dir, head3_img, body3_img, legs1_img, arms1_img); break;
				default:
					init(state, pos, dir, head2_img, body2_img, legs2_img, arms2_img); break;
			}
		}
		
		override public function update():void 
		{
			super.update();
		}
	}
}